package _14综合继承案例_超级玛丽游戏;

/**
 *
 啪嗒龟 Tortoise
 属性：名称name，图片名称imageName，颜色color
 行为: 移动move
 */
public class Tortoise extends Role{

    private String color;

    public Tortoise() {
    }

    public Tortoise(String name, String imageName, String color) {
        super(name, imageName);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void move() {
        System.out.println(color+"的"+super.getName()+"正在移动");
    }
}
